<%--
  Created by IntelliJ IDEA.
  User: 20456
  Date: 2021/11/19
  Time: 15:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<% String contextPath = request.getContextPath(); %>
<html>
<head>
    <title>全部菜品</title>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/bootstrap-3.4.1-dist/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/style.css"/>
    <script src="<%=contextPath%>/js/jquery-3.6.0.min.js"></script>
    <script src="<%=contextPath%>/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
</head>
<body>

<table width="80%" border="1px" cellpadding="0" cellspacing="0">
    <thead>
    <tr>
        <th>序号</th>
        <th>用户名</th>
        <th>密码</th>
        <th>权限</th>
        <th>电话</th>
        <th>地址</th>
        <th>编辑</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${users}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td>******</td>
            <c:if test="${user.ident == '1'}"><td>管理员</td></c:if>
            <c:if test="${user.ident == '0'}"><td>普通用户</td></c:if>
            <td>${user.tel}</td>
            <td>${user.address}</td>

            <td><a>编辑</a>&nbsp;&nbsp;&nbsp;| &nbsp;&nbsp;&nbsp;<a>删除</a></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
